package com.example.demo.model;/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_erupt.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.upms.model.base.HyperModel;
import xyz.erupt.jpa.model.BaseModel;
import java.util.Set;
import java.util.Date;

@Erupt(name = "新闻")
@Table(name = "articl_class")
@Entity
public class Articlclass extends BaseModel {

        @EruptField(
                views = @View(
                        title = "图片"
                ),
                edit = @Edit(
                        title = "图片",
                        type = EditType.ATTACHMENT, search = @Search, notNull = true,
                        attachmentType = @AttachmentType(type = AttachmentType.Type.IMAGE)
                )
        )
        private String picture;

        @EruptField(
                views = @View(
                        title = "标题"
                ),
                edit = @Edit(
                        title = "标题",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String title;

        @EruptField(
                views = @View(
                        title = "简介"
                ),
                edit = @Edit(
                        title = "简介",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String brief;

        public String getPicture() {
                return picture;
        }

        public void setPicture(String picture) {
                this.picture = picture;
        }

        public String getTitle() {
                return title;
        }

        public void setTitle(String title) {
                this.title = title;
        }

        public String getBrief() {
                return brief;
        }

        public void setBrief(String brief) {
                this.brief = brief;
        }
}